home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Text Processing / rtftohtml 2.5ƒ / html-trans < prev    next >
Text File  |  1994-03-08  |  6KB  |  200 lines

  1. # Paragraph Style Tags table
  2. # Format:
  3. #"name","starttag","endtag","col2mark","tabmark","parmark",allowtext,cannest,DeleteCol1,fold
  4. .PTag
  5. "Normal","","\n","\t","\t","<p>\n",1,0,0,1
  6. "h1","<h1>\n","</h1>\n","\t","\t","<br>\n",0,0,0,1
  7. "h2","<h2>\n","</h2>\n","\t","\t","<br>\n",0,0,0,1
  8. "h3","<h3>\n","</h3>\n","\t","\t","<br>\n",0,0,0,1
  9. "h4","<h4>\n","</h4>\n","\t","\t","<br>\n",0,0,0,1
  10. "h5","<h5>\n","</h5>\n","\t","\t","<br>\n",0,0,0,1
  11. "h6","<h6>\n","</h6>\n","\t","\t","<br>\n",0,0,0,1
  12. "ul","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,0,1
  13. "ul-d","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,1,1
  14. "ol","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,0,1
  15. "ol-d","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,1,1
  16. "dl","<dl>\n<dt>","</dl>","\n<dd>","\t","\n<dt>",1,1,0,1
  17. "dir","<dir>\n<li>","</dir>","\n<li>","\n<li>","\n<li>",0,1,0,1
  18. "menu","<menu>\n<li>","</menu>\n","\n<li>","\n<li>","\n<li>",0,1,0,1
  19. "address","<address>","</address>\n","\t","\t","<br>\n",1,0,0,1
  20. "pre","<pre>","</pre>","\t","\t","\n",0,0,0,0
  21. "blockquote","<blockquote>","</blockquote>","\t","\t","\n",1,0,0,1
  22. "hr","<hr>","","","","",1,0,0,1
  23. # This is a required entry; tables will be formatted with this entry
  24. "_Table","<pre>","</pre>","\t","\t","\n",0,0,0,0
  25.  
  26. # Text STyle Tags table
  27. # Format
  28. # "name","Starttag","Endtag"
  29. .TTag
  30. "b","<b>","</b>"
  31. "i","<i>","</i>"
  32. "u","<u>","</u>"
  33. "em","<em>","</em>"
  34. "cite","<cite>","</cite>"
  35. "tt","<tt>","</tt>"
  36. "strong","<strong>","</strong>"
  37. "code","<code>","</code>"
  38. "samp","<samp>","</samp>"
  39. "kbd","<kbd>","</kbd>"
  40. "var","<var>","</var>"
  41. "dfn","<dfn>","</dfn>"
  42.  
  43. # Text Match Table
  44. # Format:
  45. # "Font",FontSize,Match,Mask,"TextStyleName"
  46. # "" is don't care for fonts
  47. # 0 is don't care for font size
  48. # Special names for TextStyleName
  49. # _Discard - text will not be output
  50. # _Name    - text will be used for an named anchor
  51. # _HRef    - text is an href
  52. # _Hot     - end of this text marks the end of hot text
  53. # _Literal - text is sent thorough without any translation
  54. # The order of bits for match and mask is:
  55. #    v^bDWUHACSOTIB - Bold
  56. #    v^bDWUHACSOTI - Italic
  57. #    v^bDWUHACSOT - StrikeThrough
  58. #    v^bDWUHACSO - Outline
  59. #    v^bDWUHACS - Shadow
  60. #    v^bDWUHAC - SmallCaps
  61. #    v^bDWUHA - AllCaps
  62. #    v^bDWUH - Hidden
  63. #    v^bDWU - Underline
  64. #    v^bDW - Word Underline
  65. #    v^bD - Dotted Underline
  66. #    v^b - Double Underline
  67. #    v^ - SuperScript
  68. #    v - SubScript
  69. #    v^bDWUIACSOTIB
  70. .TMatch
  71. #
  72. # First do specials, because they are higher priority than other matches
  73. # double-underline/not hidden -> hot text
  74. # double-underline/hidden -> href
  75. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  76. "",0,00100000000000,00100010000000,"_Hot"
  77. "",0,00100010000000,00100010000000,"_HRef"
  78.  
  79. # hidden/shadow -> literal
  80. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  81. "",0,00000010010000,00000010010000,"_Literal"
  82.  
  83. # hidden/outline -> Name
  84. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  85. "",0,00000010001000,00000010001000,"_Name"
  86.  
  87. # hidden/all other hiddens are discarded
  88. "",0,00000010000000,00000010000000,"_Discard"
  89.  
  90. # All Superscripts are assumed to be Footnotes - is this ok?
  91. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  92. "",0,01000000000000,01000000000000,"_FootNote"
  93.  
  94. # Regular matches - You can have multiple of these active
  95.  
  96. # monospace fonts -> tt
  97. "Courier",0,00000000000000,00000000000000,"tt"
  98. "Monoco",0,00000000000000,00000000000000,"tt"
  99.  
  100. # bold -> bold
  101. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  102. "",0,00000000000001,00000000000001,"b"
  103.  
  104. # italic/underline -> cite, italic/nounderline -> italic
  105. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  106. "",0,00000000000010,00000100000010,"i"
  107. "",0,00000100000010,00000100000010,"cite"
  108.  
  109. # any underline without italic -> underline
  110. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  111. "",0,00010000000000,00111100000010,"u"
  112. "",0,00001000000000,00111100000010,"u"
  113. "",0,00000100000000,00111100000010,"u"
  114. "",0,00100000000000,00111100000010,"u"
  115.  
  116. # outline,shadow -> em
  117. #    v^bDWUIACSOTIB,v^bDWUIACSOTIB
  118. "",0,00000000001000,00000000001000,"em"
  119. "",0,00000000010000,00000000010000,"em"
  120.  
  121.  
  122. # Format:
  123. # "Paragraph Style",NestLevel,"ParagraphStyleName"
  124. # First Entry is the default if no style match. Should be level 0 
  125. # point to a Paragraph style with no markup
  126. .PMatch
  127. "Normal",0,"Normal"
  128. # This is a required entry; tables will be formatted with this entry
  129. "_Table",0,"_Table"
  130. "heading 1",0,"h1"
  131. "heading 2",0,"h2"
  132. "heading 3",0,"h3"
  133. "heading 4",0,"h4"
  134. "heading 5",0,"h5"
  135. "heading 6",0,"h6"
  136. "ol",0,"ol"
  137. "ol 1",1,"ol"
  138. "ol 2",2,"ol"
  139. "ol 3",3,"ol"
  140. "ol 4",4,"ol"
  141. "ol 5",5,"ol"
  142. "ul",0,"ul"
  143. "ul 1",1,"ul"
  144. "ul 2",2,"ul"
  145. "ul 3",3,"ul"
  146. "ul 4",4,"ul"
  147. "ul 5",5,"ul"
  148. "numbered list",0,"ol-d"
  149. "numbered list 1",1,"ol-d"
  150. "numbered list 2",2,"ol-d"
  151. "numbered list 3",3,"ol-d"
  152. "numbered list 4",4,"ol-d"
  153. "numbered list 5",5,"ol-d"
  154. "bullet list",0,"ul-d"
  155. "bullet list 1",1,"ul-d"
  156. "bullet list 2",2,"ul-d"
  157. "bullet list 3",3,"ul-d"
  158. "bullet list 4",4,"ul-d"
  159. "bullet list 5",5,"ul-d"
  160. "dir",0,"dir"
  161. "dir 1",1,"dir"
  162. "dir 2",2,"dir"
  163. "dir 3",3,"dir"
  164. "dir 4",4,"dir"
  165. "dir 5",5,"dir"
  166. "small gloss",0,"dl"
  167. "small gloss 1",1,"dl"
  168. "small gloss 2",2,"dl"
  169. "small gloss 3",3,"dl"
  170. "small gloss 4",4,"dl"
  171. "small gloss 5",5,"dl"
  172. "glossary",0,"dl"
  173. "glossary 1",1,"dl"
  174. "glossary 2",2,"dl"
  175. "glossary 3",3,"dl"
  176. "glossary 4",4,"dl"
  177. "glossary 5",5,"dl"
  178. "menu",0,"menu"
  179. "menu 1",1,"menu"
  180. "menu 2",2,"menu"
  181. "menu 3",3,"menu"
  182. "menu 4",4,"menu"
  183. "menu 5",5,"menu"
  184. "pre",0,"pre"
  185. "blockquote",0,"blockquote"
  186. "address",0,"address"
  187. "hr",0,"hr"
  188. # the following paragraph styles will be discarded
  189. "toc 1",0,"_Discard"
  190. "toc 2",0,"_Discard"
  191. "toc 3",0,"_Discard"
  192. "toc 4",0,"_Discard"
  193. "toc 5",0,"_Discard"
  194. "index 1",0,"_Discard"
  195. "index 2",0,"_Discard"
  196. "index 3",0,"_Discard"
  197. "index 4",0,"_Discard"
  198. "index 5",0,"_Discard"
  199.